package com.cow.support.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Service entity. @author MyEclipse Persistence Tools
 */

public class Service implements java.io.Serializable {

	// Fields

	private Long serviceid;
	private Resourceinfo resourceinfo;
	private String frequency;
	private String assistfrequency;
	private Date startday;
	private Date endday;
	private String servetime;
	private Set servetasks = new HashSet(0);

	// Constructors

	/** default constructor */
	public Service() {
	}

	/** minimal constructor */
	public Service(String frequency) {
		this.frequency = frequency;
	}

	/** full constructor */
	public Service(Resourceinfo resourceinfo, String frequency, String assistfrequency, Date startday, Date endday,
			String servetime, Set servetasks) {
		this.resourceinfo = resourceinfo;
		this.frequency = frequency;
		this.assistfrequency = assistfrequency;
		this.startday = startday;
		this.endday = endday;
		this.servetime = servetime;
		this.servetasks = servetasks;
	}

	// Property accessors

	public Long getServiceid() {
		return this.serviceid;
	}

	public void setServiceid(Long serviceid) {
		this.serviceid = serviceid;
	}

	public Resourceinfo getResourceinfo() {
		return this.resourceinfo;
	}

	public void setResourceinfo(Resourceinfo resourceinfo) {
		this.resourceinfo = resourceinfo;
	}

	public String getFrequency() {
		return this.frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}

	public String getAssistfrequency() {
		return this.assistfrequency;
	}

	public void setAssistfrequency(String assistfrequency) {
		this.assistfrequency = assistfrequency;
	}

	public Date getStartday() {
		return this.startday;
	}

	public void setStartday(Date startday) {
		this.startday = startday;
	}

	public Date getEndday() {
		return this.endday;
	}

	public void setEndday(Date endday) {
		this.endday = endday;
	}

	public String getServetime() {
		return this.servetime;
	}

	public void setServetime(String servetime) {
		this.servetime = servetime;
	}

	public Set getServetasks() {
		return this.servetasks;
	}

	public void setServetasks(Set servetasks) {
		this.servetasks = servetasks;
	}

}